package dao.mysql;

import dao.*;

public class DAOFactoryImpl extends DAOFactory {
	BookingDAO bookingDAO;
	FacilityDAO facilityDAO;
	PriorityDAO priorityDAO;
	PublicHolidayDAO holidayDAO;
	UserDAO userDAO;
	
	public DAOFactoryImpl() {
		bookingDAO = new BookingDAOImpl();
		facilityDAO = new FacilityDAOImpl();
		priorityDAO = new PriorityDAOImpl();
		holidayDAO = new PublicHolidayDAOImpl();
		userDAO = new UserDAOImpl();
	}
	
	@Override
	public BookingDAO getBookingDAO() {
		return bookingDAO;
	}

	@Override
	public FacilityDAO getFacilityDAO() {
		return facilityDAO;
	}

	@Override
	public PriorityDAO getPriorityDAO() {
		return priorityDAO;
	}

	@Override
	public PublicHolidayDAO getPublicHolidayDAO() {
		return holidayDAO;
	}

	@Override
	public UserDAO getUserDAO() {
		return userDAO;
	}

}
